package com.lurencun.android.topicbank.entity;

import com.lurencun.android.topicbank.presist.Solution;


public class SolutionJsonEntity {

	/** 问题ID **/
	private Long solutionId;
	
	private String content;

	public Long getSolutionId() {
		return solutionId;
	}

	public void setSolutionId(Long solutionId) {
		this.solutionId = solutionId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Solution transform() {
		Solution solution = new Solution();
		solution.setContent(content);
		solution.setSolutionId(solutionId);
		return solution;
	}

	public boolean isValid() {
		return this.solutionId!=null && this.solutionId>0 && this.content!=null && !this.content.equals("");
	}
	
	
}
